﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<LuKou.Web.Form.LoginForm>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="CssContent" runat="server">
    <link type="text/css" rel="Stylesheet" href="/Style/Store.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="webNav">
        当前位置：<%=Html.ActionLink("首页","index","home") %>
        > 用户登录
    </div>
    <div class="storelogin">
        <h1>用户登录</h1>
        <%using (Html.BeginForm()){ %>
        <table>
            <tr>
                <td class="tdlable">
                    <%=Html.LabelFor(m=>m.UserName) %>
                </td>
                <td>
                    <%=Html.TextBoxFor(m=>m.UserName)%>
                    <%--<%=Html.ValidationMessageFor(m=>m.UserName) %>--%>
                </td>
            </tr>
            <tr>
                <td class="tdlable">
                    <%=Html.LabelFor(m => m.PassWord)%>
                </td>
                <td>
                    <%=Html.PasswordFor(m => m.PassWord)%>
                    <%--<%=Html.ValidationMessageFor(m => m.PassWord)%>--%>
                </td>
            </tr>
            <tr>
                <td class="tdlable">
                    <%=Html.LabelFor(m => m.ValidateCode)%>
                </td>
                <td>
                    <%=Html.TextBoxFor(m => m.ValidateCode, new  { style="width:70px",MaxLength="4"})%>
                    <img style="cursor: pointer;" src="/ValidateCode.aspx/VerifyImage" id="VerifyImage"
                        title="看不清？点击换一个" align="absmiddle" onclick="javascript:document.getElementById('VerifyImage').src='/ValidateCode.aspx/VerifyImage/'+Math.random();return false;" />
                   <%-- <%=Html.ValidationMessageFor(m => m.ValidateCode)%>--%>
                </td>
            </tr>
            <tr>
                <td colspan="2"><%=Html.ValidationSummary() %></td>
            </tr>
            <tr>
                <td colspan="2">
                    <input class="btnlogin" type="image" src="/Style/Images/store_login.png" />
                    <%=Html.ActionLink("忘记密码？", "index", "home", new { @class = "a adecoration" })%>
                </td>
            </tr>
        </table>
        <%}%>
    </div>
    <div class="storeloginintro">
        <p class="tips">友情提示：如果您还不是会员，请注册。</p>
        <p class="notes">注册之后，你可以：</p>
        <ol>
            <li>保存您的个人资料</li>
            <li>收藏您关注的商品</li>
            <li>订阅本店的商品信息</li>
        </ol>
        <p class="link"><%=Html.ActionLink("立即注册新用户","reg","account") %><%=Html.ActionLink("商家入住","","") %></p>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="JsContent" runat="server">
</asp:Content>
